<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>复古胶片相机 - 礼物愿望详情</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #6366f1;
            --primary-light: #eef2ff;
            --secondary: #ec4899;
            --secondary-light: #fee2e2;
            --light-gray: #f3f4f6;
            --dark-gray: #1f2937;
            --text-gray: #6b7280;
            --border-color: #e5e7eb;
        }
        
        body {
            background-color: #fafafa;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--dark-gray);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
        }
        
        /* 头部样式 */
        .site-header {
            background-color: white;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .logo i {
            font-size: 1.8rem;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            background-color: var(--light-gray);
            border: none;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 8px;
            width: 100%;
        }
        
        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-gray);
        }
        
        .nav-links .nav-link {
            color: var(--dark-gray);
            font-weight: 500;
            margin-left: 1.5rem;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .nav-links .nav-link:hover,
        .nav-links .nav-link.active {
            color: var(--primary);
        }
        
        .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* 主体内容 */
        .main-content {
            padding: 2rem 0;
        }
        
        .breadcrumb {
            margin-bottom: 1.5rem;
            background-color: transparent;
            padding: 0;
            font-size: 0.9rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-gray);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--dark-gray);
        }
        
        /* 愿望详情样式 */
        .wish-detail-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        /* 图片展示区 */
        .wish-images {
            display: flex;
            flex-direction: column;
        }
        
        .main-image-container {
            width: 100%;
            height: 450px;
            overflow: hidden;
            position: relative;
        }
        
        .main-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .main-image-container:hover .main-image {
            transform: scale(1.02);
        }
        
        .thumbnail-container {
            display: flex;
            gap: 0.5rem;
            padding: 1rem;
            overflow-x: auto;
            scrollbar-width: thin;
        }
        
        .thumbnail-item {
            width: 80px;
            height: 80px;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .thumbnail-item:hover {
            border-color: var(--primary);
        }
        
        .thumbnail-item.active {
            border-color: var(--primary);
        }
        
        .thumbnail-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .no-image-container {
            width: 100%;
            height: 450px;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray);
        }
        
        .no-image-container i {
            font-size: 5rem;
        }
        
        /* 愿望信息区 */
        .wish-info {
            padding: 1.5rem;
        }
        
        .wish-status {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 1rem;
        }
        
        .status-unfulfilled {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .status-fulfilled {
            background-color: #dcfce7;
            color: #166534;
        }
        
        .wish-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        
        .wish-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--text-gray);
            font-size: 0.9rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .wish-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .wish-tag {
            font-size: 0.85rem;
            padding: 0.3rem 0.8rem;
            border-radius: 4px;
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .wish-description {
            font-size: 1rem;
            line-height: 1.8;
            color: var(--dark-gray);
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .wish-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 2rem;
        }
        
        /* 作者信息 */
        .wish-author {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 0;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 2rem;
        }
        
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            flex-grow: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--dark-gray);
            text-decoration: none;
        }
        
        .author-name:hover {
            color: var(--primary);
        }
        
        .author-meta {
            font-size: 0.85rem;
            color: var(--text-gray);
        }
        
        .follow-btn {
            background-color: white;
            border: 1px solid var(--primary);
            color: var(--primary);
            border-radius: 6px;
            padding: 0.4rem 1.2rem;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .follow-btn:hover, .follow-btn.following {
            background-color: var(--primary);
            color: white;
        }
        
        /* 操作按钮 */
        .wish-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .action-button {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .action-button.primary {
            background-color: var(--primary);
            color: white;
            flex: 1;
            min-width: 180px;
        }
        
        .action-button.primary:hover {
            background-color: #5254f5;
        }
        
        .action-button.secondary {
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--dark-gray);
            flex: 1;
            min-width: 120px;
        }
        
        .action-button.secondary:hover {
            background-color: var(--light-gray);
        }
        
        .action-button.liked {
            color: var(--secondary);
            border-color: var(--secondary);
        }
        
        .action-button.saved {
            color: var(--primary);
            border-color: var(--primary);
        }
        
        /* 相关推荐 */
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .related-wishes {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .related-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: transform 0.2s;
            text-decoration: none;
            color: var(--dark-gray);
        }
        
        .related-card:hover {
            transform: translateY(-4px);
            color: var(--dark-gray);
        }
        
        .related-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .related-info {
            padding: 1rem;
        }
        
        .related-title {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .related-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-gray);
        }
        
        /* 留言区 */
        .comments-section {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comments-count {
            font-weight: 600;
            color: var(--dark-gray);
        }
        
        .sort-comments {
            color: var(--text-gray);
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        /* 留言输入框 */
        .comment-input-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-input-wrapper {
            flex-grow: 1;
        }
        
        .comment-input {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.8rem 1rem;
            font-size: 0.95rem;
            resize: none;
            min-height: 100px;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.75rem;
            gap: 1rem;
        }
        
        .cancel-comment {
            background: none;
            border: none;
            color: var(--text-gray);
            font-size: 0.95rem;
            cursor: pointer;
            padding: 0.5rem 1rem;
        }
        
        .post-comment {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.5rem 1.5rem;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .post-comment:hover {
            background-color: #5254f5;
        }
        
        .post-comment:disabled {
            background-color: #a5b4fc;
            cursor: not-allowed;
        }
        
        /* 留言列表 */
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
        }
        
        .comment-content {
            flex-grow: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--text-gray);
        }
        
        .comment-text {
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 0.75rem;
        }
        
        .comment-footer {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: var(--text-gray);
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--secondary);
        }
        
        /* 回复 */
        .replies-container {
            margin-top: 1rem;
            margin-left: 2.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-content {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            flex-grow: 1;
        }
        
        .reply-header {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.25rem;
        }
        
        .reply-author {
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .reply-to {
            color: var(--text-gray);
            font-size: 0.85rem;
        }
        
        .reply-text {
            font-size: 0.85rem;
            line-height: 1.5;
            margin-bottom: 0.5rem;
        }
        
        .reply-footer {
            display: flex;
            gap: 1rem;
            font-size: 0.8rem;
        }
        
        .reply-input-container {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }
        
        .reply-input {
            flex-grow: 1;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.5rem 0.75rem;
            font-size: 0.85rem;
        }
        
        .reply-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .reply-actions {
            display: flex;
            gap: 0.75rem;
            font-size: 0.85rem;
        }
        
        .cancel-reply {
            background: none;
            border: none;
            color: var(--text-gray);
            cursor: pointer;
        }
        
        .post-reply {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0.3rem 0.75rem;
            font-size: 0.85rem;
            cursor: pointer;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .main-image-container, .no-image-container {
                height: 350px;
            }
            
            .wish-actions {
                flex-direction: column;
            }
            
            .action-button {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .search-container {
                max-width: 200px;
            }
            
            .wish-title {
                font-size: 1.5rem;
            }
            
            .main-image-container, .no-image-container {
                height: 300px;
            }
            
            .thumbnail-item {
                width: 70px;
                height: 70px;
            }
            
            .related-wishes {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                display: none;
            }
            
            .main-content {
                padding: 1rem 0;
            }
            
            .main-image-container, .no-image-container {
                height: 250px;
            }
            
            .thumbnail-item {
                width: 60px;
                height: 60px;
            }
            
            .wish-info {
                padding: 1rem;
            }
            
            .wish-title {
                font-size: 1.3rem;
            }
            
            .wish-meta {
                flex-wrap: wrap;
                gap: 1rem;
            }
            
            .section-title {
                font-size: 1.3rem;
            }
            
            .comments-section {
                padding: 1rem;
            }
        }
    </style>
</head>
<body>
    <!-- 网站头部 -->
    <header class="site-header py-3">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <a href="#" class="logo">
                    <i class="fas fa-gift"></i>
                    GiftSocial
                </a>
                
                <div class="search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索礼物愿望...">
                </div>
                
                <nav class="nav-links d-flex align-items-center">
                    <a href="#" class="nav-link">
                        <i class="fas fa-home"></i>
                        <span class="nav-text">首页</span>
                    </a>
                    <a href="#" class="nav-link active">
                        <i class="fas fa-list"></i>
                        <span class="nav-text">愿望推荐</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-plus-circle"></i>
                        <span class="nav-text">发布愿望</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-bell"></i>
                        <span class="nav-text">通知</span>
                    </a>
                    <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="avatar ms-2">
                </nav>
            </div>
        </div>
    </header>
    
    <!-- 主体内容区 -->
    <div class="main-content">
        <div class="container">
            <!-- 面包屑导航 -->
            <nav class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">首页</a></li>
                <li class="breadcrumb-item"><a href="#">愿望推荐</a></li>
                <li class="breadcrumb-item"><a href="#">摄影器材</a></li>
                <li class="breadcrumb-item active">复古胶片相机</li>
            </nav>
            
            <!-- 愿望详情卡片 -->
            <div class="row">
                <!-- 左侧图片区域 -->
                <div class="col-lg-6 mb-4 mb-lg-0">
                    <div class="wish-detail-card h-100">
                        <div class="wish-images">
                            <div class="main-image-container">
                                <img src="https://picsum.photos/800/600?random=10" alt="复古胶片相机" class="main-image" id="mainImage">
                            </div>
                            
                            <div class="thumbnail-container">
                                <div class="thumbnail-item active">
                                    <img src="https://picsum.photos/800/600?random=10" alt="复古胶片相机图片1" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=10">
                                </div>
                                <div class="thumbnail-item">
                                    <img src="https://picsum.photos/800/600?random=11" alt="复古胶片相机图片2" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=11">
                                </div>
                                <div class="thumbnail-item">
                                    <img src="https://picsum.photos/800/600?random=12" alt="复古胶片相机图片3" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=12">
                                </div>
                                <div class="thumbnail-item">
                                    <img src="https://picsum.photos/800/600?random=13" alt="复古胶片相机图片4" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=13">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 右侧信息区域 -->
                <div class="col-lg-6">
                    <div class="wish-detail-card h-100">
                        <div class="wish-info">
                            <span class="wish-status status-unfulfilled">未实现的愿望</span>
                            
                            <h1 class="wish-title">复古胶片相机 - 记录生活中的美好瞬间</h1>
                            
                            <div class="wish-meta">
                                <div class="meta-item">
                                    <i class="far fa-calendar"></i>
                                    <span>3天前发布</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-eye"></i>
                                    <span>1.2k 浏览</span>
                                </div>
                                <div class="meta-item">
                                    <i class="far fa-heart"></i>
                                    <span>215 喜欢</span>
                                </div>
                                <div class="meta-item">
                                    <i class="far fa-comment"></i>
                                    <span>36 留言</span>
                                </div>
                            </div>
                            
                            <div class="wish-tags">
                                <span class="wish-tag">摄影</span>
                                <span class="wish-tag">复古</span>
                                <span class="wish-tag">爱好</span>
                                <span class="wish-tag">生日礼物</span>
                            </div>
                            
                            <div class="wish-description">
                                一直想要一台复古胶片相机，喜欢胶片带来的独特质感和色彩。希望能记录生活中的美好瞬间，体验慢摄影的乐趣。<br><br>
                                理想中的型号是佳能AE-1或尼康FM2，最好是带有标准镜头的套装。成色不需要全新，但希望功能完好，镜头无霉无划痕。<br><br>
                                这个愿望是为我的25岁生日准备的，希望能收到这份特别的礼物，开始我的胶片摄影之旅。
                            </div>
                            
                            <div class="wish-price">
                                期望价格: ¥1,500 - ¥3,000
                            </div>
                            
                            <div class="wish-author">
                                <img src="https://picsum.photos/100/100?random=20" alt="作者头像" class="author-avatar">
                                <div class="author-info">
                                    <a href="#" class="author-name">摄影师小林</a>
                                    <div class="author-meta">
                                        <span>342 位粉丝</span> · <span>发布了 28 个愿望</span>
                                    </div>
                                </div>
                                <button class="follow-btn">
                                    <i class="fas fa-plus"></i> 关注
                                </button>
                            </div>
                            
                            <div class="wish-actions">
                                <button class="action-button primary">
                                    <i class="fas fa-gift"></i> 满足愿望
                                </button>
                                <button class="action-button secondary like-btn">
                                    <i class="far fa-heart"></i> 喜欢
                                </button>
                                <button class="action-button secondary save-btn">
                                    <i class="far fa-bookmark"></i> 收藏
                                </button>
                                <button class="action-button secondary share-btn">
                                    <i class="fas fa-share-alt"></i> 分享
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 相关愿望推荐 -->
            <div class="related-section">
                <h2 class="section-title">
                    <i class="fas fa-th"></i> 相关愿望推荐
                </h2>
                
                <div class="related-wishes">
                    <a href="#" class="related-card">
                        <img src="https://picsum.photos/400/300?random=20" alt="胶片套装" class="related-image">
                        <div class="related-info">
                            <h3 class="related-title">专业胶片摄影套装</h3>
                            <div class="related-meta">
                                <span>¥2,200</span>
                                <span><i class="far fa-heart"></i> 156</span>
                            </div>
                        </div>
                    </a>
                    
                    <a href="#" class="related-card">
                        <img src="https://picsum.photos/400/300?random=21" alt="复古镜头" class="related-image">
                        <div class="related-info">
                            <h3 class="related-title">复古定焦镜头</h3>
                            <div class="related-meta">
                                <span>¥850</span>
                                <span><i class="far fa-heart"></i> 98</span>
                            </div>
                        </div>
                    </a>
                    
                    <a href="#" class="related-card">
                        <img src="https://picsum.photos/400/300?random=22" alt="暗房设备" class="related-image">
                        <div class="related-info">
                            <h3 class="related-title">家用暗房设备套装</h3>
                            <div class="related-meta">
                                <span>¥3,500</span>
                                <span><i class="far fa-heart"></i> 210</span>
                            </div>
                        </div>
                    </a>
                    
                    <a href="#" class="related-card">
                        <img src="https://picsum.photos/400/300?random=23" alt="摄影课程" class="related-image">
                        <div class="related-info">
                            <h3 class="related-title">专业胶片摄影课程</h3>
                            <div class="related-meta">
                                <span>¥680</span>
                                <span><i class="far fa-heart"></i> 132</span>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            
            <!-- 留言区 -->
            <div class="comments-section">
                <div class="comments-header">
                    <h2 class="section-title comments-count">
                        <i class="far fa-comments"></i> 留言 (36)
                    </h2>
                    <div class="sort-comments">
                        <i class="fas fa-sort"></i> 最新留言
                    </div>
                </div>
                
                <!-- 留言输入框 -->
                <div class="comment-input-container">
                    <img src="https://picsum.photos/100/100?random=1" alt="你的头像" class="comment-avatar">
                    <div class="comment-input-wrapper">
                        <textarea class="comment-input" placeholder="分享你的想法..."></textarea>
                        <div class="comment-actions">
                            <button class="cancel-comment">取消</button>
                            <button class="post-comment" disabled>发布留言</button>
                        </div>
                    </div>
                </div>
                
                <!-- 留言列表 -->
                <div class="comments-list">
                    <!-- 留言1 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=30" alt="用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <div class="comment-author">摄影爱好者阿杰</div>
                                <div class="comment-time">2天前</div>
                            </div>
                            <div class="comment-text">
                                我有一台尼康FM2，成色很新，去年刚做过全面保养，镜头是50mm f/1.4的。如果有兴趣可以私聊我，价格可以商量。
                            </div>
                            <div class="comment-footer">
                                <div class="comment-action like-comment">
                                    <i class="far fa-heart"></i>
                                    <span>42</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复区 -->
                            <div class="replies-container">
                                <!-- 回复输入框 (默认隐藏) -->
                                <div class="reply-input-container reply-form" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=1" alt="你的头像" class="comment-avatar">
                                    <input type="text" class="reply-input" placeholder="回复 @摄影爱好者阿杰">
                                    <div class="reply-actions">
                                        <button class="cancel-reply">取消</button>
                                        <button class="post-reply">回复</button>
                                    </div>
                                </div>
                                
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=20" alt="作者头像" class="comment-avatar">
                                    <div class="reply-content">
                                        <div class="reply-header">
                                            <span class="reply-author">摄影师小林</span>
                                            <span class="reply-to">回复 @摄影爱好者阿杰</span>
                                        </div>
                                        <div class="reply-text">
                                            真的吗？非常感兴趣！我私信你详谈~
                                        </div>
                                        <div class="reply-footer">
                                            <div class="comment-action like-reply">
                                                <i class="far fa-heart"></i>
                                                <span>15</span>
                                            </div>
                                            <div class="comment-action reply-btn">
                                                <i class="far fa-comment"></i>
                                                <span>回复</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 留言2 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=31" alt="用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <div class="comment-author">胶片达人</div>
                                <div class="comment-time">3天前</div>
                            </div>
                            <div class="comment-text">
                                佳能AE-1确实是入门胶片的好选择，操作简单，性价比高。建议再配一个外接测光表，虽然相机有内置测光，但老相机可能不太准了。
                            </div>
                            <div class="comment-footer">
                                <div class="comment-action like-comment">
                                    <i class="far fa-heart"></i>
                                    <span>28</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复区 -->
                            <div class="replies-container">
                                <!-- 回复输入框 (默认隐藏) -->
                                <div class="reply-input-container reply-form" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=1" alt="你的头像" class="comment-avatar">
                                    <input type="text" class="reply-input" placeholder="回复 @胶片达人">
                                    <div class="reply-actions">
                                        <button class="cancel-reply">取消</button>
                                        <button class="post-reply">回复</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 留言3 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=32" alt="用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <div class="comment-author">生日礼物挑选师</div>
                                <div class="comment-time">3天前</div>
                            </div>
                            <div class="comment-text">
                                作为生日礼物，这个选择真的很棒！胶片相机能记录下很多珍贵回忆，而且很有收藏价值。祝你生日快乐，愿望成真！
                            </div>
                            <div class="comment-footer">
                                <div class="comment-action like-comment">
                                    <i class="fas fa-heart liked"></i>
                                    <span>56</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复区 -->
                            <div class="replies-container">
                                <!-- 回复输入框 (默认隐藏) -->
                                <div class="reply-input-container reply-form" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=1" alt="你的头像" class="comment-avatar">
                                    <input type="text" class="reply-input" placeholder="回复 @生日礼物挑选师">
                                    <div class="reply-actions">
                                        <button class="cancel-reply">取消</button>
                                        <button class="post-reply">回复</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 加载更多留言 -->
                <div class="text-center mt-4">
                    <button class="action-button secondary">
                        <i class="fas fa-comments"></i> 加载更多留言
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 图片切换功能
            const thumbnails = document.querySelectorAll('.thumbnail-item');
            const mainImage = document.getElementById('mainImage');
            
            thumbnails.forEach(thumbnail => {
                thumbnail.addEventListener('click', function() {
                    // 移除所有缩略图的活跃状态
                    thumbnails.forEach(thumb => thumb.classList.remove('active'));
                    
                    // 设置当前缩略图为活跃
                    this.classList.add('active');
                    
                    // 更新主图
                    const newImageSrc = this.querySelector('.thumbnail-image').getAttribute('data-img');
                    mainImage.classList.add('opacity-0');
                    
                    setTimeout(() => {
                        mainImage.src = newImageSrc;
                        mainImage.classList.remove('opacity-0');
                    }, 200);
                });
            });
            
            // 关注按钮功能
            const followBtn = document.querySelector('.follow-btn');
            followBtn.addEventListener('click', function() {
                if (this.classList.contains('following')) {
                    this.classList.remove('following');
                    this.innerHTML = '<i class="fas fa-plus"></i> 关注';
                } else {
                    this.classList.add('following');
                    this.innerHTML = '<i class="fas fa-check"></i> 已关注';
                }
            });
            
            // 喜欢按钮功能
            const likeBtn = document.querySelector('.like-btn');
            likeBtn.addEventListener('click', function() {
                this.classList.toggle('liked');
                const icon = this.querySelector('i');
                
                if (this.classList.contains('liked')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                }
            });
            
            // 收藏按钮功能
            const saveBtn = document.querySelector('.save-btn');
            saveBtn.addEventListener('click', function() {
                this.classList.toggle('saved');
                const icon = this.querySelector('i');
                
                if (this.classList.contains('saved')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                }
            });
            
            // 分享按钮功能
            const shareBtn = document.querySelector('.share-btn');
            shareBtn.addEventListener('click', function() {
                alert('分享功能：选择分享方式');
            });
            
            // 满足愿望按钮功能
            const fulfillBtn = document.querySelector('.action-button.primary');
            fulfillBtn.addEventListener('click', function() {
                alert('你可以通过以下方式满足这个愿望：\n1. 直接赠送同款礼物\n2. 提供购买链接\n3. 联系作者详谈');
            });
            
            // 留言输入框功能
            const commentInput = document.querySelector('.comment-input');
            const postCommentBtn = document.querySelector('.post-comment');
            const cancelCommentBtn = document.querySelector('.cancel-comment');
            
            commentInput.addEventListener('input', function() {
                postCommentBtn.disabled = this.value.trim() === '';
            });
            
            cancelCommentBtn.addEventListener('click', function() {
                commentInput.value = '';
                postCommentBtn.disabled = true;
            });
            
            postCommentBtn.addEventListener('click', function() {
                alert('留言发布成功！');
                commentInput.value = '';
                postCommentBtn.disabled = true;
            });
            
            // 留言点赞功能
            const likeCommentBtns = document.querySelectorAll('.like-comment');
            likeCommentBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const countElem = this.querySelector('span');
                    let count = parseInt(countElem.textContent);
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countElem.textContent = (count + 1).toString();
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countElem.textContent = (count - 1).toString();
                    }
                });
            });
            
            // 回复点赞功能
            const likeReplyBtns = document.querySelectorAll('.like-reply');
            likeReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const countElem = this.querySelector('span');
                    let count = parseInt(countElem.textContent);
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countElem.textContent = (count + 1).toString();
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countElem.textContent = (count - 1).toString();
                    }
                });
            });
            
            // 回复按钮功能
            const replyBtns = document.querySelectorAll('.reply-btn');
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 找到对应的回复表单
                    const replyForm = this.closest('.comment-content, .reply-content').querySelector('.reply-form');
                    
                    // 隐藏所有其他回复表单
                    document.querySelectorAll('.reply-form').forEach(form => {
                        if (form !== replyForm) {
                            form.style.display = 'none';
                        }
                    });
                    
                    // 切换当前回复表单的显示状态
                    if (replyForm.style.display === 'none' || replyForm.style.display === '') {
                        replyForm.style.display = 'flex';
                        replyForm.querySelector('.reply-input').focus();
                    } else {
                        replyForm.style.display = 'none';
                    }
                });
            });
            
            // 取消回复功能
            const cancelReplyBtns = document.querySelectorAll('.cancel-reply');
            cancelReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.reply-form').style.display = 'none';
                });
            });
            
            // 发布回复功能
            const postReplyBtns = document.querySelectorAll('.post-reply');
            postReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const replyForm = this.closest('.reply-form');
                    const replyInput = replyForm.querySelector('.reply-input');
                    
                    if (replyInput.value.trim() !== '') {
                        alert('回复发布成功！');
                        replyInput.value = '';
                        replyForm.style.display = 'none';
                    }
                });
            });
            
            // 加载更多留言功能
            const loadMoreCommentsBtn = document.querySelector('.action-button.secondary');
            loadMoreCommentsBtn.addEventListener('click', function() {
                const spinner = document.createElement('i');
                spinner.className = 'fas fa-spinner fa-spin me-2';
                this.prepend(spinner);
                this.disabled = true;
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.removeChild(spinner);
                    this.disabled = false;
                    alert('已加载全部留言');
                }, 1500);
            });
        });
    </script>
</body>
</html>
    
